package st.business.tepth.business.user.busnumber.workholder.repair.finish;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;
import st.shadow.library.core.base.mvp.BaseModel;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-03-26 11:11
 */

public interface RepairCompleteContract {
    interface View extends BaseView {
        void completePass();
        void completeNotPass();
        void showError(String msg);
        void cancelWorkSucceed();
    }

    interface Model extends BaseModel {
        Disposable complete(String token, int id,String repairTaskIds,
                            String reason, int status,
                            OnDataConvertListener<String> listener);
        Disposable cancelFinishWork(String token, int repairId,
                                    OnDataConvertListener<String> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void complete(String token, int id,String repairTaskIds,
                               String reason, int status);
        abstract void cancelFinishWork(String token, int repairId);
    }
}
